import { createApp } from 'vue'
import { createPinia } from 'pinia'

import App from './App.vue'
import router from './router'
/** 导入全局样式 */
import '@/styles/index.scss'
/** 导入字体图标 */
import '@/assets/fonts/icon/iconfont.css'
/** 导入pinia持久化 */
import piniaPluginPersist from 'pinia-plugin-persistedstate'

const app = createApp(App)
const pinia = createPinia()
pinia.use(piniaPluginPersist)

app.use(pinia)
app.use(router)

app.mount('#app')
